/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package oids.frontEnd.util;

/**
 *
 * @author CJ
 */
public abstract class ComponentStepCalculation {

    public static Point2D getStepInterval(double rad, int interval){
        Point2D result = new Point2D((int)(interval * Math.cos(rad)),
                ((int)(interval * Math.sin(rad))));
        return result;
    }

    public static Point2D getStartingPoint(int x, int y, double rad){
        Point2D result = new Point2D((int)(10 * Math.cos(rad)) + x,
                (int)(10 * Math.sin(rad)) + y);
        return result;
    }

}
